#ifndef CENTRALWIDGET_H
#define CENTRALWIDGET_H

#include <QWidget>
#include <QListWidget>
#include <QLineEdit>
#include <QPushButton>
#include <QUdpSocket>


class CentralWidget : public QWidget
{
    Q_OBJECT
public:
    explicit CentralWidget(QString port, QWidget *parent = 0);

signals:

public slots:
    void send_message();
    void get_message();

private:
    QListWidget * chat_history;
    QLineEdit * ip_text;
    QLineEdit * port_text;
    QLineEdit * message_text;
    QPushButton * send_button;

    QUdpSocket * socket;
    int port;
};

#endif // CENTRALWIDGET_H
